CDISC Builderâ„¢  2.1 - Installation Test Scripts - Varlen
The following documentation contains test scripts and expected results for validating the CDISC Builder Varlen tool.  Do the following to verify proper installation:
  • Start CDISC Builder application by double clicking on the desktop icon.
  • Perform each test by performing the steps specified by the instructions.  
  • Evaluate the results of each step by comparing them with results described in the Documentation column. 
Script Description Documentation
Source Data Type invalid path
Navigate to location with no SAS datasets
Path name that is longer than 200 characters
Use [...] path navigation
 
Instructions 1  
Data Sets List of datasets match what is in the selected path
Verify preview button with a separate PROC PRINT
Verify select all button toggle.
Verify CDISC button selection of all CDISC type datasets.
 
Instructions 2
Round Default to 10
Verify the different values with the OK button and report generated.
 
Instructions 3
Output The [...] library manager returns the corect path
Default to varlen.html
 
Instructions 4
OK/Cancel OK button applies all selected parameters.
Memory of all fields is retained.
Cancel does not apply logic.
 
Instructions 5
Save Code Program is saved with proper comments
Generated program is submitted and results verified
Instructions 6

Instructions 1
Start the CDISC Builder application from the icon in desktop.

  1. Create the following path if it does not already exist.
    c:\temp\cdiscbld\input
    c:\temp\cdiscbld\output

  2. Submit the following program:

    libname testlib 'c:\temp\cdiscbld\input';
    libname outtest 'c:\temp\cdiscbld\output';

    data testlib.shoes;
    set sashelp.ae;
    run;
    data testlib.company;
    set sashelp.co;
    run;
    data testlib.manage;
    set sashelp.dm;
    run;
    data testlib.shoes;
    set sashelp.shoes;
    run;
    data testlib.company;
    set sashelp.company;
    run;
    data testlib.manage;
    set sashelp.manage;
    run;
     

  3. Click on the 'VARLEN' icon to open the varlen screen.

  4. Clear all text in Source Data and click on 'OK' button.

  5. Verify that there is a warning message:

    The field (Source Data) contains a missing value.
     

  6. Type 'C:\invalidfolder' in Source Data and click on 'OK' button.

  7. Verify that there is a warning message:

    The field (Source Data) contains an invalid directory.
     

  8. Click on [...] button next to Source Data text input.

  9. Navigate to the folder that does not contain any dataset, such as :output folder.

  10. Click on 'OK' button.

  11. Verify that there is a warning message:

    The Datasets list is empty.
     

  12. Create a folder with the name is longer than 200 characters, such as:


     

  13. Click on [...] button next to Source Data text input.

  14. Navigate to that folder and click 'OK' button.

  15. Verify that there is a warning message:

    You cannot select a path longer than 200 characters using Select dialog. Please enter the path directly to the Source Data field.
     

  16. Click on [...] button next to Source Data text input.

  17. Navigate to folder that contains some datasets, such as: input folder.

  18. Verify that these datasets will be displayed in Data Sets list box.

Instructions 2
Start the CDISC Builder application from the icon in desktop.

  1. Click on the 'VARLEN' icon to open the varlen screen.

  2. Click on [...] button next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Verify that DM, AE, CO... will be displayed in Data Sets list box.

  5. Choose AE in Data Sets list and click on 'Preview' button.

  6. Verify that there is a report shows all values in AE dataset.

  7. Submit the following program:

    libname testlib 'c:\temp\cdiscbld\input';
    proc print data=testlib.shoes;
    run;
     

  8. Verify that the result of clicking on Preview button is similar with the result of proc print command.

  9. Click on 'Select All' button and verify that all datasets are selected.

  10. Click on 'Select All' button again and verify that all datasets are deselected.

  11. Click on 'Select All' button again and then click on 'Preview' button.

  12. Verify that there is a report that shows content of all datasets.

  13. Click on 'CDISC' button and verify that CO, AE and DM datasets are selected.

Instructions 3
Start the CDISC Builder application from the icon in desktop.

  1. Click on the 'VARLEN' icon to open the varlen screen.

  2. Verify that the default value of Round is 10.

  3. Click on [...] button next to Source Data text input.

  4. Navigate to 'C:\temp\cdiscbld\input' folder.

  5. Verify that DM, AE, CO... will be displayed in Data Sets list box.

  6. Choose 'Company' in Data Sets list.

  7. Navigate to 'C:\temp\cdiscbld\input' folder.

  8. Open the Company dataset to verify that the variable 'LEVEL2' has a value with the longest is 8 characters.

  9. Close the Company dataset.

  10. Click on 'OK' button.

  11. Verify that the report will be displayed.

  12. Verify that the  new length of variable 'LEVEL2' is 10.

  13. Choose 20 in Round combo box.

  14. Click on 'OK' button.

  15. Verify that the report will be displayed.

  16. Verify that the new length of variable 'LEVEL2' is 20.

  17. Navigate to 'C:\temp\cdiscbld\input' folder.

  18. Choose None in Round combo box.

  19. Click on 'OK' button.

  20. Verify that the report will be displayed.

  21. Verify that the new length of variable 'LEVEL2' is 8.

Instructions 4
Start the CDISC Builder application from the icon in desktop.

  1. Click on the 'VARLEN' icon to open the varlen screen.

  2. Verify that the default value of Output is 'C:\temp\definedoc\input\varlen.html'.

  3. Click on [...] button next to Output text input.

  4. Navigate to 'C:\temp\cdiscbld\output' folder.

  5. Type 'result.html' in file name and then click on 'OK' button.

  6. Verify that the value of Output is 'C:\temp\definedoc\output\result.html'

Instructions 5
Start the CDISC Builder application from the icon in desktop.

  1. Click on the 'VARLEN' icon to open the varlen screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Choose 'Company' in Data Sets list.

  5. Click on 'OK' button.

  6. Verify that there is a report will be displayed.

  7. Close report and type 'C:\temp\definedoc\output\new.html' in Output.

  8. Choose 20 in Round combo box.

  9. Click on 'Cancel' button.

  10. Verify that the varlen screen will be closed and will not create report.

  11. Click on the 'VARLEN' icon to open the varlen screen.

  12. Verify that the value of Round is 20.

Instructions 6
Start the CDISC Builder application from the icon in desktop.

  1. Click on the 'VARLEN' icon to open the varlen screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Choose 'Company' in Data Sets list.

  5. Choose 20 in Round combo box.

  6. Type 'C:\temp\cdiscbld\output\new.html' in Output.

  7. Click on 'Save Code' button.

  8. Type 'C:\temp\cdiscbld\output' in Path text field.

  9. Verify that the file name is 'varlen_company'.

  10. Click on 'OK' button.

  11. Verify that the View Code screen will be displayed.

  12. Verify that all information in view code is correct.

  13. Verify that the  varlen_company.sas will be created in 'C:\temp\cdiscbld\output'.

  14. Navigate to 'C:\temp\cdiscbld\output'.

  15. Right click on 'varlen_company.sas' and select 'Batch Submit'.

  16. Verify that there is a 'new.html' will be created in 'C:\temp\cdiscbld\output'.

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009